// 会话存储，通过会话存储拿取数据库取值和赋值
export default{
    get(key){
        return JSON.parse(sessionStorage.getItem(key))
    },
    set(key,value){
        sessionStorage.setItem(key,JSON.stringify(value));
    },
    clear(){
        sessionStorage.clear();
    },
    iskey(key){
        let rst=sessionStorage.getItem(key);
        if(rst){
            return true
        }else{
            return false
        }
    },
    remove(key){
        sessionStorage.removeItem(key);
    }
}